package eventos;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import vista.objetos.GraficableConEtiqueta;

import controlador.ControladorEditor;

public class EventoPegar extends MouseAdapter {

	private ControladorEditor controlador;

	public EventoPegar(ControladorEditor controlador)
	{
		super();
		this.controlador = controlador;
	}
	
	public void mouseClicked(MouseEvent e)
	{	
		GraficableConEtiqueta graf = this.controlador.getGraficableEnBuffer();
		
		if(graf!= null)
			this.controlador.pegarGraficableEnBuffer();
	}
}
